package com.halflife.comeElectricity.user;

public class User {
    private Integer id;

    private String name;

    private String password;

    private String phone;

    private Boolean valid;

    private String unionid;

    private String certificateNo;

    /**
     * 身份证正面照片
     */
    private String img;
    /**
     * 身份证反面照片
     */
    private String img_;

    public User() {
    }

    public User(Integer id, String name,
                String password, String phone,
                Boolean valid) {
        if (id != null)
            this.id = id;
        if (name != null)
            this.name = name;
        if (password != null)
            this.password = password;
        if (phone != null)
            this.phone = phone;
        if (valid != null)
            this.valid = valid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid;
    }

    public String getCertificateNo() {
        return certificateNo;
    }

    public void setCertificateNo(String certificateNo) {
        this.certificateNo = certificateNo;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Boolean getValid() {
        return valid;
    }

    public void setValid(Boolean valid) {
        this.valid = valid;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getImg_() {
        return img_;
    }

    public void setImg_(String img_) {
        this.img_ = img_;
    }
}